#include "VCatagoryUi.h"
#include "VCatagoryEffect.h"
#include "common.h"


VCatagoryUi::VCatagoryUi(void)
{
    init();
}

VCatagoryUi::~VCatagoryUi(void)
{
    SAFE_RELEASE(_effect);
}

void VCatagoryUi::start(void)
{
    _effect->expand();
}

void VCatagoryUi::init()
{
    _effect = new VCatagoryEffect;

    insert(_effect);
}

void VCatagoryUi::setVisible(bool vis)
{
    VUi::setVisible(vis);

    if (vis)
    {
        start();
    }
}

void VCatagoryUi::eventHandle(int id)
{
    DEBUG_OUTPUT("Fuck me!!! id: %d.", id);
}
